﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 报警信息, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(HRDS_SOFTWAREWARNING_Metadata))]
    public partial class HRDS_SOFTWAREWARNING
    {
        /// <summary>
        /// 创建<see cref="HRDS_SOFTWAREWARNING"/>的实例
        /// </summary>
        public HRDS_SOFTWAREWARNING()
        {
        }
        /// <summary>
        /// SWGUID
        /// </summary>
        public virtual string SWGUID { get; set; }

        		
        /// <summary>
        /// 软件进程名称
        /// </summary>
        public virtual string SOFTWARENAME { get; set; }

    		
        /// <summary>
        /// 软件进程描述
        /// </summary>
        public virtual string DISCRIPTIVENAME { get; set; }

    		
        /// <summary>
        /// 软件类型
        /// </summary>
        public virtual decimal SOFTWARETYPE { get; set; }

    		
        /// <summary>
        /// IP
        /// </summary>
        public virtual string SOFTWAREIP { get; set; }

    		
        /// <summary>
        /// IP映射ID
        /// </summary>
        public virtual string IPMAPPINGID { get; set; }

    		
        /// <summary>
        /// IP映射名
        /// </summary>
        public virtual string IPMAPPINGNAME { get; set; }

    		
        /// <summary>
        /// 报警类型
        /// </summary>
        public virtual decimal WARNTYPE { get; set; }

    		
        /// <summary>
        /// 报警提示内容
        /// </summary>
        public virtual string WARNCONTENT { get; set; }

    		
        /// <summary>
        /// 报警日期
        /// </summary>
        public virtual DateTime WARNDATE { get; set; }

    		
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string REMARKS { get; set; }

    		
        public override bool Equals(object obj)
        {
            HRDS_SOFTWAREWARNING model = obj as HRDS_SOFTWAREWARNING;
            return model != null && (ReferenceEquals(SWGUID,null) ? ReferenceEquals(model.SWGUID, null) : SWGUID.Equals(model.SWGUID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(SWGUID, null) ? 0 : SWGUID.GetHashCode());
            return hash;
        }
    }
}
